<template>
  <div class="headers">
    <header class="header">
      <slot name="icon1"></slot>
      <slot name="text"></slot>
      <slot name="icon2"></slot>
    </header>
    <div class="navbar">
        <a class="brand" href="/" style="color : #fff">  
          <img class="imagess" src="../assets/images/logo.png">
        </a><span>Vue.js</span>
        <form id="search_form" class="navbar-search" action="/search">
          <input id="q" name="q" class="search-query span3" value="" type="text">
        </form>
    </div>
  </div>
  
</template>

<script>
export default {
  name: 'headers',
  data () {
    return {

    }
  },
  methods: {
  }
}
</script>

<style scoped>
.header{
  position: fixed;
  top: 0;
  left: 0;
  z-index:9;
  width: 100%;
  height: 45px;
  line-height: 45px;
  background-color: #fff;
  text-align: center;
  box-shadow: 0 -1px 10px 2px rgba(0,0,0,.5);
  }
  .header-left{
    position: absolute;
    left: 10px;
    top: 0;
    cursor: pointer;
  }
  .iconfont{
      font-size: 22px;
      color: #2c3e50;
  }
  .header-right{
    position: absolute;
    right: 10px;
    top: 0;
    cursor: pointer;
  }
  .iconfont{
      color: #61b7a0;
      font-size: 20px;
    }
.navbar {
    margin: 0 5px;
    z-index: 999;
    width: auto !important;
    margin-bottom: 0;
    width: 100%;
    height: 60px;
    position: fixed;
    background: #1c6132;
    font-size: 13px;

}
.navbar {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    overflow: visible;
}
.navbar .brand {
    width: 40px;
    padding: 0 20px;
    height: 40px;
    display: block;
    float: left;
    padding: 10px 20px;
    margin-left: -20px;
    color: #777;
    text-shadow: 0 1px 0 #fff;
}
.navbar span{
  display: inline-block;
  float: left;
  color: #fff;
  font-size: 20px;
  font-weight: 200;
  margin-top: 25px;
  margin-left: -15px;
}
.navbar .brand .imagess{
  width: 40px;
  height: 40px;
}
.navbar .navbar-search {
    position: relative;
    margin-left: 130px;
    margin-top: 5px;
    margin-bottom: 0;
}
.navbar .navbar-search input{
  width: 80%;
  height: 30px;
  border-radius: 15px;
  margin-top: 15px;
}
</style>
